package weibo4j.examples.trends;

import java.util.List;

import com.dssrz.weibo4j.Trend;
import com.dssrz.weibo4j.Weibo;
import com.dssrz.weibo4j.model.Trends;
import com.dssrz.weibo4j.model.WeiboException;

import weibo4j.examples.oauth2.Log;

public class GetTrendsDaily {
	public static void main(String[] args) {
		String access_token = args[0];
		Weibo weibo = new Weibo();
		weibo.setToken(access_token);
		Trend tm = new Trend();
		List<Trends> trends = null;
		try {
			trends = tm.getTrendsDaily();
			for(Trends ts : trends){
				Log.logInfo(ts.toString());
			}
		} catch (WeiboException e) {
			e.printStackTrace();
		}
	}


}


